//
//  AccountManager.h
//
//  Created by   on 2018/6/2
//  Copyright (c) 2018 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>



@interface AccountManager : NSObject <NSCoding, NSCopying>

@property (nonatomic, assign) double status;
@property (nonatomic, strong) NSString *userId;
@property (nonatomic, strong) NSString *userName;
@property (nonatomic, strong) NSString *internalBaseClassIdentifier;
@property (nonatomic, strong) NSString *regTime;
@property (nonatomic, strong) NSString *userPwd;
@property (nonatomic, strong) NSString *email;
@property (nonatomic, strong) NSString *nickName;

+ (instancetype)modelObjectWithDictionary:(NSDictionary *)dict;
- (instancetype)initWithDictionary:(NSDictionary *)dict;
- (NSDictionary *)dictionaryRepresentation;



/* 获取用户单例
 */
+ (AccountManager *)shareAccountManager;


/* 解析用户信息成功后存储至本地
 */
- (void)parserDataWithDictionary:(NSDictionary *)dict;

/* 用户信息存储至本地
 */
- (BOOL)storeAccountInfo;


/* 退出登录时从本地删除用户信息
 */
- (BOOL)logoutAccount;


@end
